package org.dromara.work.domain.bo;

import org.dromara.work.domain.MhContent;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;

/**
 * 地名门户内容业务对象 dm_mh_content
 *
 * @author Chen
 * @date 2025-02-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class MhContentSaveBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 是否置顶
     */
    @NotNull(message = "是否置顶不能为空", groups = { AddGroup.class, EditGroup.class })
    private Boolean isTop;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 栏目id
     */
    @NotNull(message = "栏目id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long categoryId;

    /**
     * 文章简介
     */
    @NotBlank(message = "文章简介不能为空", groups = { AddGroup.class, EditGroup.class })
    private String summary;

    /**
     * 文章内容
     */
    @NotBlank(message = "文章内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 关键字
     */
    private String keyword;

    /**
     * 封面
     */
    private String photo;

    /**
     * 发布时间
     */
    private String pulishTime;

    /**
     * 作者
     */
    @NotBlank(message = "作者不能为空", groups = { AddGroup.class, EditGroup.class })
    private String author;

    /**
     * 新闻来源
     */
    private String source;

    /**
     * 是否发布
     */
    private Boolean isPublish;


}
